package com.micro.school.order.housingfee.controller;

import com.micro.school.common.core.web.controller.BaseController;
import com.micro.school.common.core.web.domain.AjaxResult;
import com.micro.school.order.housingfee.domain.StudentHousingFee;
import com.micro.school.order.housingfee.service.IStudentHousingFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;

/***
 * 查询住宿费
 * */
@RequestMapping("/school/studentHousingFee")
@RestController
public class StudentHousingFeeController extends BaseController {

    @Autowired
    private IStudentHousingFeeService feeService;

    /**
     * 查询住宿费
     */
    @GetMapping("/queryByIdNumber")
    public AjaxResult queryByIdNumber(@RequestParam("idNumber") String idNumber) {
        List<StudentHousingFee> fees = feeService.queryByIdNumber(idNumber);
        return AjaxResult.success(fees);
    }

}
